package com.liy.framework.web.spring.service;

import java.io.Serializable;
import java.util.List;
import com.liy.framework.common.vo.PageVO;

public interface IBaseService<T,  PK extends Serializable> {

    int add(final T entity) throws Exception;

    int update(final T entity) throws Exception;

    void delete(final PK pk) throws Exception;

    T findById(final PK pk) throws Exception;

    List<T> findList(final T entity) throws Exception;

    List<T> findByPage(final T entity, final PageVO<T> pageVO) throws Exception;
}
